<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

$this->title = '修改密码';
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="panel panel-primary">


	<div class="panel-body">
	
		<form role="form" id="form1" method="post" class="validate">
            <input type ="hidden" name="_csrf" value="<?= yii::$app->request->getCsrfToken() ?>" />
    <?php //$form = ActiveForm::begin(['id'=>'form1','options'=>['class'=>'validate','role'=>'form']]); ?>
			
			<div class="form-group">
				<label class="control-label">用户名</label>
				
				<input type="text" class="form-control" name="name" value="<?=$model->username?>" disabled/>
			</div>
			<div class="form-group">
				<label class="control-label">原密码</label>
				
				<input type="password" class="form-control" name="Adminuser[oldpassword]" data-validate="required,minlength[6]" data-message-required="请输入原密码" data-message-minlength="密码最少为6个字符" placeholder="请输入原密码" />
			</div>
			<div class="form-group">
				<label class="control-label">密码</label>
				
				<input type="password" id="password" class="form-control" name="Adminuser[password]" data-validate="required,minlength[6]" data-message-required="请输入密码" data-message-minlength="密码最少为6个字符" placeholder="请输入密码" />
			</div>
			<div class="form-group">
				<label class="control-label">确认密码</label>
				
				<input type="password" class="form-control" name="Adminuser[repassword]" data-validate="required,minlength[6],equalTo[#password]" data-message-required="请输入确认密码" data-message-minlength="密码最少为6个字符" data-message-equal-to="确认密码需与密码一致" placeholder="请输入确认密码" />
			</div>
			
			<div class="form-group">
				<button type="submit" class="btn btn-success">修改</button>
			</div>
		
		</form>
    <?php //ActiveForm::end(); ?>
	
	</div>

</div>

	<script src="/statics/js/jquery.validate.min.js"></script>
